keys = event.getKeys()

# need to manually check for escape, as our key checking will interfere with
# Builder's escape check:
if 'escape' in keys: 
    core.quit()

if 'space' in keys:
    # check how many ratings have been completed:
    completed_ratings = 0
    for Slider in [mainSoundsratings]:
        if Slider.getRating() is not None:
            completed_ratings = completed_ratings + 1

    if completed_ratings == 1:
        continueRoutine = False # end now
